<template>
  <div class="msg-detail-bg">
    <div class="msg-detail-header">
      <van-icon name="arrow-left" class="msg-back" @click="onBack" />
      消息详情
    </div>
    <div class="msg-detail-card">
      <div class="msg-detail-title">{{ detail.title }}</div>
      <div class="msg-detail-time">{{ detail.time }}</div>
      <div class="msg-detail-content">{{ detail.content }}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "messageDetail",
  data() {
    return {
      detail: {
        title: '系统通知',
        time: '2024-05-01 09:30',
        content: '您的审批已通过，请及时查看并处理相关事项。如有疑问请联系管理员。'
      }
    }
  },
  methods: {
    onBack() {
      this.$router ? this.$router.back() : window.history.back();
    }
  }
}
</script>

<style scoped>
.msg-detail-bg {
  min-height: 100vh;
  background: #fff;
  padding-bottom: 40px;
}
.msg-detail-header {
  background: #1677ff;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  padding: 32px 0 18px 0;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 2px 12px #1677ff22;
  letter-spacing: 2px;
  position: relative;
}
.msg-back {
  position: absolute;
  left: 18px;
  top: 34px;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
}
.msg-detail-card {
  background: #fff;
  margin: 24px 16px 0 16px;
  border-radius: 16px;
  box-shadow: 0 4px 16px #1677ff11;
  padding: 22px 20px 28px 20px;
  border: 1px solid #e0f7fa;
}
.msg-detail-title {
  font-size: 19px;
  font-weight: bold;
  color: #1677ff;
  margin-bottom: 8px;
}
.msg-detail-time {
  font-size: 13px;
  color: #999;
  margin-bottom: 18px;
}
.msg-detail-content {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
  word-break: break-all;
}
</style> 